#coding=utf-8
from django.contrib import admin
from websth.message.models import *
    
class MessageAdmin(admin.ModelAdmin):
    list_display            = ('title', 'fromUser', 'toUser', 'replyTo', 'status', 'createDate')
    list_filter             = ('fromUser', 'toUser', 'title',)
    list_per_page           = 25
    list_select_related     = True
    date_hierarchy          = 'createDate'

admin.site.register(Message, MessageAdmin)